package cn.gene.timeyan.ums.webapi.ums.mapper;

import cn.gene.timeyan.pojo.ums.model.Attention;
import cn.gene.timeyan.pojo.ums.model.Befollow;
import cn.gene.timeyan.pojo.ums.vo.FollowVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 关注    Mapper  接口*
 *
 * @author LWG
 * @date 2022/7/23 11:25
 * @since 1.0.0@gene.cn
 */
@Repository
public interface AttentionMapper {
    //增加关注数量
    void addFollersCount(Long userId);
    //减少关注
    void reduceFollersCount(Long userId);
    //关注
    void insertFollowUser(Attention attention);
    //取消关注
    void deleteFollowUserId(Long userId,Long followUserId);
    Befollow selectExists(Long userId, Long followUserId);
    String selectFollowState(Long userId,Long followUserId);
    void updateFollowState(Long userId,Long followUserId);

    List<FollowVO> getFollowListByUserId(Long userId);
}
